import loadable from "@/utils/loadable";

const routes = [
  {
    path: "/login",
    exact: true,
    name: "登录",
    component: loadable(() =>
      import("@/views/login/Login")),
  },
  // {
  //     path: "/home/stats",
  //     exact: true,
  //     name: "统计",
  //     component: loadable(() =>
  //         import("@/views/index/Index")),   
  // },
  {
    path: "/home",
    exact: true,
    name: "首页",
    component: loadable(() =>
      import("@/views/index/home/home")),
  },
  {
    path: "/commodity/examine",
    exact: true,
    name: "商品审核列表",
    component: loadable(() =>
      import("@/views/commodity/Examine")),
  },
  {
    path: "/commodity/list",
    exact: true,
    name: "商品列表",
    component: loadable(() =>
      import("@/views/commodity/List")),
  },
  {
    path: "/commodity/library",
    exact: true,
    name: "商品库",
    component: loadable(() =>
      import("@/views/commodity/Library")),
  },
  {
    path: "/commodity/list/edit/:id",
    exact: true,
    name: "商品列表修改",
    component: loadable(() =>
      import("@/views/commodity/List/component/Edit")),
  },
  {
    path: "/commodity/list/add",
    exact: true,
    name: "商品列表新增",
    component: loadable(() =>
      import("@/views/commodity/List/component/Add")),
  },
  {
    path: "/commodity/list/evaluate/:productId/:storeName",
    exact: true,
    name: "商品列表评论",
    component: loadable(() =>
      import("@/views/commodity/List/component/Evaluate")
    ),
  },
  {
    path: "/commodity/list/detail/:productId",
    exact: true,
    name: "商品列表评论",
    component: loadable(() =>
      import("@/views/commodity/List/component/Detail")
    ),
  },
  {
    path: "/commodity/inventory",
    exact: true,
    name: "商品库存预警",
    component: loadable(() =>
      import("@/views/commodity/InventoryWarning")
    ),
  },
  {
    path: "/mall/inventory",
    exact: true,
    name: "商城商品库存预警",
    component: loadable(() =>
      import("@/views/mall/InventoryWarning")
    ),
  },
  {
    path: "/mall/address",
    exact: true,
    name: "收货地址配置",
    component: loadable(() =>
      import("@/views/mall/Address")
    ),
  },
  {
    path: "/mall/syncInventory",
    exact: true,
    name: "商品库存同步",
    component: loadable(() =>
      import("@/views/mall/SyncInventory")
    ),
  },
  {
    path: "/mall/examine",
    exact: true,
    name: "商品审核列表",
    component: loadable(() =>
      import("@/views/mall/Examine")),
  },
  {
    path: "/mall/centerlist",
    exact: true,
    name: "中央商品库",
    component: loadable(() =>
      import("@/views/mall/centerList")),
  },
  {
    path: "/mall/list",
    exact: true,
    name: "商品列表",
    component: loadable(() =>
      import("@/views/mall/List")),
  },
  {
    path: "/mall/library",
    exact: true,
    name: "商品库",
    component: loadable(() =>
      import("@/views/mall/Library")),
  },
  {
    path: "/mall/brandExamine",
    exact: true,
    name: "商品审核",
    component: loadable(() =>
      import("@/views/mall/Brand/Examine")),
  },
  {
    path: "/mall/list/edit/:id",
    exact: true,
    name: "商品列表修改",
    component: loadable(() =>
      import("@/views/mall/List/component/Edit")),
  },
  {
    path: "/mall/list/add",
    exact: true,
    name: "商品列表新增",
    component: loadable(() =>
      import("@/views/mall/List/component/Add")),
  },
  {
    path: "/mall/list/evaluate/:productId/:storeName",
    exact: true,
    name: "商品列表评论",
    component: loadable(() =>
      import("@/views/mall/List/component/Evaluate")
    ),
  },
  {
    path: "/mall/list/detail/:productId",
    exact: true,
    name: "商品列表评论",
    component: loadable(() =>
      import("@/views/mall/List/component/Detail")
    ),
  },
  {
    path: "/service/examine",
    exact: true,
    name: "服务审核列表",
    component: loadable(() =>
      import("@/views/service/Examine")),
  },
  {
    path: "/service/list",
    exact: true,
    name: "服务列表",
    component: loadable(() =>
      import("@/views/service/List")),
  },
  {
    path: "/service/library",
    exact: true,
    name: "服务列表",
    component: loadable(() =>
      import("@/views/service/Library")),
  },
  {
    path: "/order/list",
    exact: true,
    name: "订单列表",
    component: loadable(() =>
      import("@/views/orderManagement/OrderList")),
  },
  {
    path: "/order/chargeback",
    exact: true,
    name: "退单列表",
    component: loadable(() =>
      import("@/views/orderManagement/Chargeback")),
  },
  {
    path: "/order/mallOrder",
    exact: true,
    name: "商城订单列表",
    component: loadable(() =>
      import("@/views/orderManagement/MallOrder")),
  },
  {
    path: "/order/MallOrderKeeper",
    exact: true,
    name: "商城订单列表(库管)",
    component: loadable(() =>
      import("@/views/orderManagement/MallOrderKeeper")),
  },
  {
    path: "/order/mallChargeback",
    exact: true,
    name: "商城退单列表",
    component: loadable(() =>
      import("@/views/orderManagement/MallChargeback")),
  },
  {
    path: "/order/chargeback/details/:id",
    exact: true,
    name: "退单列表-详情",
    component: loadable(() =>
      import("@/views/orderManagement/component/ChargebackDetails")),
  },
  {
    path: "/order/mallOrder/details/:id/:fromPage",
    exact: true,
    name: "订单列表详情",
    component: loadable(() =>
      import("@/views/orderManagement/MallOrder/details")
    ),
  },
  {
    path: "/order/chargeback/mallDetails/:id",
    exact: true,
    name: "退单列表-详情",
    component: loadable(() =>
      import("@/views/orderManagement/MallChargeback/details")),
  },
  {
    path: "/order/details/:id",
    exact: true,
    name: "订单列表详情",
    component: loadable(() =>
      import("@/views/orderManagement/component/Details")
    ),
  },
  {
    path: "/order/lateShipment",
    exact: true,
    name: "订单列表详情",
    component: loadable(() =>
      import("@/views/orderManagement/LateShipment")
    ),
  },
  {
    path: "/writeOff/personList",
    exact: true,
    name: "核销列表",
    component: loadable(() =>
      import("@/views/writeOff/personList/index")),
  },
  {
    path: "/writeOff/record/:id",
    exact: true,
    name: "核销列表",
    component: loadable(() =>
      import("@/views/writeOff/personList/component/Record")),
  },
  {
    path: "/writeOff/carlist",
    exact: true,
    name: "配送车辆",
    component: loadable(() =>
      import("@/views/writeOff/carList/index")),
  },
  {
    path: "/statics/quantity",
    exact: true,
    name: "订单数量统计",
    component: loadable(() =>
      import("@/views/dataStatics/Quantity")),
  },
  {
    path: "/statics/quantityoffline",
    exact: true,
    name: "线下订单数量统计",
    component: loadable(() =>
      import("@/views/dataStatics/QuantityOffLine")),
  },
  {
    path: "/statics/amount",
    exact: true,
    name: "订单金额统计",
    component: loadable(() =>
      import("@/views/dataStatics/Amount")),
  },
  {
    path: "/statics/amountoffline",
    exact: true,
    name: "线下订单金额统计",
    component: loadable(() =>
      import("@/views/dataStatics/AmountOffLine")),
  },
  {
    path: "/statics/income",
    exact: true,
    name: "门店收入统计",
    component: loadable(() =>
      import("@/views/dataStatics/Income")),
  },
  {
    path: "/statics/incomeoffline",
    exact: true,
    name: "线下门店收入统计",
    component: loadable(() =>
      import("@/views/dataStatics/IncomeOffLine")),
  },
  {
    path: "/settings/storeConfig",
    exact: true,
    name: "门店设置",
    component: loadable(() =>
      import("@/views/settings/storeConfig")),
  },
  {
    path: "/settings/menu",
    exact: true,
    name: "菜单设置",
    component: loadable(() =>
      import("@/views/settings/Menu")),
  },
  {
    path: "/settings/role",
    exact: true,
    name: "角色设置",
    component: loadable(() =>
      import("@/views/settings/Role")),
  },
  {
    path: "/settings/perm",
    exact: true,
    name: "权限设置",
    component: loadable(() =>
      import("@/views/settings/perm")),
  },
  {
    path: "/settings/user",
    exact: true,
    name: "用户列表",
    component: loadable(() =>
      import("@/views/settings/User")),
  },
  {
    path: "/cashier/salesman",
    exact: true,
    name: "导购员列表",
    component: loadable(() =>
      import("@/views/cashier/Salesman")),
  },
  {
    path: "/cashier/beautician",
    exact: true,
    name: "美容师列表",
    component: loadable(() =>
      import("@/views/cashier/Beautician")),
  },
  {
    path: "/cashier/members",
    exact: true,
    name: "会员卡管理",
    component: loadable(() =>
      import("@/views/cashier/Members")),
  },
  {
    path: "/cashier/petManager",
    exact: true,
    name: "宠物管理",
    component: loadable(() =>
      import("@/views/cashier/PetManager")),
  },
  {
    path: "/cashier/petManager/:petId",
    exact: true,
    name: "宠物信息",
    component: loadable(() =>
      import("@/views/cashier/PetManager/components/petInfo")),
  },
  {
    path: "/cashier/petManager/consume/:memberId",
    exact: true,
    name: "消费明细",
    component: loadable(() =>
      import("@/views/cashier/PetManager/components/consumeInfo")),
  },
  {
    path: "/cashier/members/list/:memberId",
    exact: true,
    name: "会员卡流水",
    component: loadable(() =>
      import("@/views/cashier/component/memberList")),
  },
  {
    path: "/financial/list",
    exact: true,
    name: "账单列表",
    component: loadable(() =>
      import("@/views/financialManagement/List")),
  },
  {
    path: "/financial/mallList",
    exact: true,
    name: "商城账单列表",
    component: loadable(() =>
      import("@/views/financialManagement/Mall")),
  },
  {
    path: "/financial/details/:id/:storeId",
    exact: true,
    name: "账单列表-详情",
    component: loadable(() =>
      import("@/views/financialManagement/component/Details")),
  },
  {
    path: "/financial/mallDetails/:id/:storeId",
    exact: true,
    name: "商城账单列表-详情",
    component: loadable(() =>
      import("@/views/financialManagement/component/MallDetails")),
  },
  {
    path: "/cashier/cashier",
    exact: true,
    name: "收银",
    component: loadable(() =>
      import("@/views/cashier/Cashier")),
  },
  {
    path: "/cashier/order",
    exact: true,
    name: "订单列表",
    component: loadable(() =>
      import("@/views/cashier/Order")),
  },
  {
    path: "/cashier/chargeback",
    exact: true,
    name: "退单列表",
    component: loadable(() =>
      import("@/views/cashier/Chargeback")),
  },
  {
    path: "/cashier/order/details/:id",
    exact: true,
    name: "订单详情",

    component: loadable(() =>
      import("@/views/cashier/component/OrderDetails")),
  },

  {
    path: "/cashier/chargeback/details/:id",
    exact: true,
    name: "订单详情",
    component: loadable(() =>
      import("@/views/cashier/component/ChargebackOrderDetails")
    ),
  },
  {
    path: "/cashier/order/chargeback/:id",
    exact: true,
    name: "订单详情",
    component: loadable(() =>
      import("@/views/cashier/component/OrderChargebackDetail")
    ),
  },
  {
    path: "/cashier/cancel",
    exact: true,
    name: "取消订单列表",
    component: loadable(() => import("@/views/cashier/Cancel")),
  },
  {
    path: "/cashier/cancel/details/:id",
    exact: true,
    name: "取消订单列表",
    component: loadable(() =>
      import("@/views/cashier/component/CancelOrderDetails")
    ),
  },
  {
    path: "/settings/platform",
    exact: true,
    name: "门店配置",
    component: loadable(() => import("@/views/settings/platformSet")),
  },
  {
    path: "/settings/distribution",
    exact: true,
    name: "配送模板",
    component: loadable(() => import("@/views/settings/distribution")),
  },
  {
    path: "/settings/orderCon",
    exact: true,
    name: "商城订单退货地址",
    component: loadable(() => import("@/views/settings/OrderCon")),
  },
  {
    path: "/settings/timeout",
    exact: true,
    name: "商城超时时间配置",
    component: loadable(() => import("@/views/settings/Timeout")),
  },
  {
    path: "/activityCode/list",
    exact: true,
    name: "二维码",
    component: loadable(() => import("@/views/activityCode/List")),
  },
  {
    path: "/activityCode/list/add",
    exact: true,
    name: "二维码-新增",
    component: loadable(() =>
      import("@/views/activityCode/List/component/Add")
    ),
  },
  {
    path: "/activityCode/Security",
    exact: true,
    name: "防伪链接",
    component: loadable(() => import("@/views/activityCode/Security")),
  },
  {
    path: "/activityCode/Security/add",
    exact: true,
    name: "防伪链接-新增",
    component: loadable(() =>
      import("@/views/activityCode/Security/component/Add")
    ),
  },
  {
    path: "/activityCode/Security/list",
    exact: true,
    name: "防伪链接-历史",
    component: loadable(() =>
      import("@/views/activityCode/Security/component/History")
    ),
  },
  {
    path: "/camera/allot",
    exact: true,
    name: "摄像头分配",
    component: loadable(() => import("@/views/camera/allot")),
  },
  {
    path: "/camera/config",
    exact: true,
    name: "摄像头配置",
    component: loadable(() => import("@/views/camera/config")),
  },
  {
    path: "/cashier/takeTheirList",
    exact: true,
    name: "到店自提列表",
    component: loadable(() => import("@/views/cashier/TakeTheirList")),
  },
  {
    path: "/order/IntraCityList",
    exact: true,
    name: "同城配送列表",
    component: loadable(() => import("@/views/orderManagement/IntraCityList")),
  },
  {
    path: "/house/number",
    exact: true,
    name: "房号管理",
    component: loadable(() => import("@/views/house/number")),
  },
  {
    path: "/hotelService/list",
    exact: true,
    name: "酒店服务列表",
    component: loadable(() => import("@/views/hotelService/index")),
  },
  {
    path: "/hotelService/add",
    exact: true,
    name: "酒店服务新增",
    component: loadable(() => import("@/views/hotelService/add")),
  },
  {
    path: "/hotelService/calendar",
    exact: true,
    name: "价格日历",
    component: loadable(() => import("@/views/hotelService/calendar")),
  },
  {
    path: "/hotelOrder/list",
    exact: true,
    name: "到店核销订单列表",
    component: loadable(() => import("@/views/hotelOrder/list")),
  },
  {
    path: "/hotelOrder/list/:id",
    exact: true,
    name: "到店核销订单详情",
    component: loadable(() =>
      import("@/views/hotelOrder/list/components/detial")
    ),
  },
  {
    path: "/hotelOrder/record",
    exact: true,
    name: "入住记录",
    component: loadable(() => import("@/views/hotelOrder/record")),
  },
  {
    path: "/hotelOrder/record/:id",
    exact: true,
    name: "入住记录详情",
    component: loadable(() =>
      import("@/views/hotelOrder/record/components/detial")
    ),
  },
  {
    path: "/sensor",
    exact: true,
    name: "传感感列表",
    component: loadable(() => import("@/views/sensor")),
  },
  {
    path: "/doctor/list",
    exact: true,
    name: "医生列表",
    component: loadable(() =>
      import("@/views/doctor/list")),
  },
  {
    path: "/doctor/list/add",
    exact: true,
    name: "创建医生",
    component: loadable(() =>
      import("@/views/doctor/list/components/add")),
  },
  {
    path: "/doctor/list/edit/:id",
    exact: true,
    name: "编辑医生",
    component: loadable(() =>
      import("@/views/doctor/list/components/add")),
  },
  {
    path: "/hotelRoomStatus/list",
    exact: true,
    name: "房态管理",
    component: loadable(() =>
      import("@/views/hotelRoomStatus/index")),
  },
  {
    path: "/hotelRoomStatus/list/checkIn/:qr/:vt",
    exact: true,
    name: "办理入住",
    component: loadable(() =>
      import("@/views/hotelRoomStatus/components/checkIn")),
  },
  {
    path: "/hotel/afterSales",
    exact: true,
    name: "酒店售后管理",
    component: loadable(() =>
      import("@/views/HotelManagement/AfterSales")),
  },
  {
    path: "/hotel/afterDetail/:id",
    exact: true,
    name: "酒店售后订单详情",
    component: loadable(() =>
      import("@/views/HotelManagement/AfterSales/detail")),
  },
  {
    path: "/hotel/afterSetting",
    exact: true,
    name: "酒店售后管理",
    component: loadable(() =>
      import("@/views/HotelManagement/AfterSales/setting")),
  },
  {
    path: "/storageManager/putIn",
    exact: true,
    name: "入库管理",
    component: loadable(() => import("@/views/storageManager/putIn")),
  },
  {
    path: "/storageManager/putIn/add/:id",
    exact: true,
    name: "入库新增",
    component: loadable(() => import("@/views/storageManager/putIn/components/add.jsx")),
  },
  {
    path: "/storageManager/outPut",
    exact: true,
    name: "出库管理",
    component: loadable(() => import("@/views/storageManager/outPut")),
  },
  {
    path: "/storageManager/outPut/add/:id/:type",
    exact: true,
    name: "出库新增",
    component: loadable(() => import("@/views/storageManager/outPut/components/add.jsx")),
  },
  {
    path: "/storageManager/stock",
    exact: true,
    name: "库存管理",
    component: loadable(() => import("@/views/storageManager/stock")),
  },
  {
    path: "/storageManager/takeStock/:id/:mode",
    exact: true,
    name: "库存管理",
    component: loadable(() => import("@/views/storageManager/stock/components/takeStock.jsx")),
  },
  {
    path: "/storageManager/goodsStore/:id",
    exact: true,
    name: "库存管理",
    component: loadable(() => import("@/views/storageManager/stock/components/goodsStock.jsx")),
  },
  {
    path: "/doctor/reservation",
    exact: true,
    name: "预约列表",
    component: loadable(() => import("@/views/doctor/reservation")),
  },
  {
    path: "/doctor/reservation/detials/:id",
    exact: true,
    name: "预约详情",
    component: loadable(() => import("@/views/doctor/reservation/components/detials")),
  },
  {
    path: "/financial/expensesReport",
    exact: true,
    name: "收支日报",
    component: loadable(() =>
      import("@/views/financialManagement/expensesReport")),
  },
  {
    path: "/doctor/chargeback",
    exact: true,
    name: "退单列表",
    component: loadable(() =>
      import("@/views/doctor/Chargeback")),
  },
  {
    path: "/doctor/chargeback/details/:id",
    exact: true,
    name: "退单列表-详情",
    component: loadable(() =>
      import("@/views/doctor/Chargeback/component/ChargebackDetails")),
  },
  {
    path: "/hotelRoomStatus/configure",
    exact: true,
    name: "入住配置",
    component: loadable(() =>
      import("@/views/hotelRoomStatus/components/configure")),
  },
  {
    path: "/procurement/list",
    exact: true,
    name: "采购列表",
    component: loadable(() =>
      import("@/views/procurement/list/index")),
  },
  {
    path: "/procurement/details/:id",
    exact: true,
    name: "采购列表-详情",
    component: loadable(() =>
      import("@/views/procurement/list/detail")),
  },
  {
    path: "/procurement/warehouse",
    exact: true,
    name: "采购入库",
    component: loadable(() =>
      import("@/views/procurement/warehouse/index")),
  },
  {
    path: "/procurement/warehouse/details/:id",
    exact: true,
    name: "采购入库-详情",
    component: loadable(() =>
      import("@/views/procurement/warehouse/detail")),
  },
  {
    path: "/procurement/putIn",
    exact: true,
    name: "入库管理",
    component: loadable(() =>
      import("@/views/procurement/putIn/index")),
  },
  {
    path: "/procurement/putIn/details/:id",
    exact: true,
    name: "入库管理-详情",
    component: loadable(() =>
      import("@/views/procurement/putIn/detail")),
  },
  {
    path: "/procurement/outPut",
    exact: true,
    name: "出库管理",
    component: loadable(() =>
      import("@/views/procurement/outPut/index")),
  },
  {
    path: "/procurement/outPut/details/:id/:type",
    exact: true,
    name: "出库管理-详情",
    component: loadable(() =>
      import("@/views/procurement/outPut/add")),
  },
  {
    path: "/procurement/purchaseReturn",
    exact: true,
    name: "采购退货列表",
    component: loadable(() =>
      import("@/views/procurement/purchaseReturn/index")),
  },
  {
    path: "/procurement/purchaseReturn/details/:id",
    exact: true,
    name: "采购退货列表-详情",
    component: loadable(() =>
      import("@/views/procurement/purchaseReturn/detail")),
  },
  {
    path: "/procurement/purchaseWarehouse",
    exact: true,
    name: "采购出库",
    component: loadable(() =>
      import("@/views/procurement/purchaseWarehouse/index")),
  },
  {
    path: "/procurement/purchaseWarehouse/details/:id",
    exact: true,
    name: "采购出库-详情",
    component: loadable(() =>
      import("@/views/procurement/purchaseWarehouse/detail")),
  },
  {
    path: "/procurement/allocateOut",
    exact: true,
    name: "调拨出库单",
    component: loadable(() =>
      import("@/views/procurement/allocateOut/index")),
  },
  {
    path: "/procurement/allocateOut/details/:id/:type/:firstTypeId",
    exact: true,
    name: "调拨出库单-详情",
    component: loadable(() =>
      import("@/views/procurement/allocateOut/add")),
  },
  {
    path: "/procurement/allocateIn",
    exact: true,
    name: "调拨入库单",
    component: loadable(() =>
      import("@/views/procurement/allocateIn/index")),
  },
  {
    path: "/procurement/allocateIn/details/:id",
    exact: true,
    name: "调拨入库单-详情",
    component: loadable(() =>
      import("@/views/procurement/allocateIn/add")),
  },
  {
    path: "/procurement/stockControl",
    exact: true,
    name: "库存管理",
    component: loadable(() =>
      import("@/views/procurement/stockControl/index")),
  },
  {
    path: "/procurement/stockControl/goodsStore/:id",
    exact: true,
    name: "库存管理-详情",
    component: loadable(() =>
      import("@/views/procurement/stockControl/detail")),
  },
  {
    path: "/procurement/stockTake",
    exact: true,
    name: "库存盘点",
    component: loadable(() =>
      import("@/views/procurement/stockTake/index")),
  },
  {
    path: "/procurement/stockTake/takeStock/:id",
    exact: true,
    name: "库存盘点-详情",
    component: loadable(() =>
      import("@/views/procurement/stockTake/detail")),
  },
  {
    path: "/cashier/reconciliation",
    exact: true,
    name: "会员卡对账报表",
    component: loadable(() =>
      import("@/views/cashier/Reconciliation")),
  }, {
    path: "/serverAuth/index",
    exact: true,
    name: "服务证认证审核列表",
    component: loadable(() =>
      import("@/views/serverAuth/index")),
  }, {
    path: "/serverAuth/detail/:id/:mode",
    exact: true,
    name: "申请信息",
    component: loadable(() =>
      import("@/views/serverAuth/detail")),
  },
];

export default routes;
